//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Brenn!','Aisle 5','Atlanta, GA','Thursday','5/2/2024','8:00 PM','6266360','Brenn--5-2-2024'],['Loony','Aisle 5','Atlanta, GA','Friday','5/3/2024','8:00 PM','6229269','Loony-5-3-2024'],['Ben Beal','Aisle 5','Atlanta, GA','Wednesday','5/8/2024','8:00 PM','6412389','Ben-Beal-5-8-2024'],['Giggs','Aisle 5','Atlanta, GA','Thursday','5/9/2024','8:00 PM','6314231','Giggs-5-9-2024'],['Chat Pile','Aisle 5','Atlanta, GA','Friday','5/10/2024','7:00 PM','6308593','Chat-Pile-5-10-2024'],['Theory','Aisle 5','Atlanta, GA','Saturday','5/11/2024','10:00 PM','6412387','Theory-5-11-2024'],['Haley Smalls','Aisle 5','Atlanta, GA','Sunday','5/12/2024','7:30 PM','6412390','Haley-Smalls-5-12-2024'],['Black Joe Lewis & The Honeybears','Aisle 5','Atlanta, GA','Wednesday','5/15/2024','7:30 PM','6314228','Black-Joe-Lewis---The-Honeybears-5-15-2024'],['Rinzen','Aisle 5','Atlanta, GA','Thursday','5/16/2024','9:00 PM','6412388','Rinzen-5-16-2024'],['Ethan Bortnick','Aisle 5','Atlanta, GA','Friday','5/17/2024','7:30 PM','6218974','Ethan-Bortnick-5-17-2024'],['CLAY - Artist','Aisle 5','Atlanta, GA','Tuesday','5/21/2024','7:30 PM','6336299','CLAY---Artist-5-21-2024'],['Robb Banks','Aisle 5','Atlanta, GA','Thursday','5/23/2024','8:00 PM','6412386','Robb-Banks-5-23-2024'],['Secrets - The Band','Aisle 5','Atlanta, GA','Saturday','5/25/2024','6:00 PM','6412384','Secrets---The-Band-5-25-2024'],['Blue Hawaii','Aisle 5','Atlanta, GA','Thursday','5/30/2024','7:30 PM','6412385','Blue-Hawaii-5-30-2024'],['Jeff Bernat','Aisle 5','Atlanta, GA','Friday','5/31/2024','8:00 PM','6229177','Jeff-Bernat-5-31-2024'],['MachineDrum','Aisle 5','Atlanta, GA','Saturday','6/1/2024','9:00 PM','6303667','MachineDrum-6-1-2024'],['The Band Who Fell to Earth','Aisle 5','Atlanta, GA','Sunday','6/2/2024','8:00 PM','6412394','The-Band-Who-Fell-to-Earth-6-2-2024'],['Strawberry Guy','Aisle 5','Atlanta, GA','Tuesday','6/4/2024','7:00 PM','6306784','Strawberry-Guy-6-4-2024'],['Lip Critic','Aisle 5','Atlanta, GA','Wednesday','6/5/2024','8:30 PM','6216754','Lip-Critic-6-5-2024'],['ROAR!','Aisle 5','Atlanta, GA','Thursday','6/6/2024','8:00 PM','6306877','ROAR--6-6-2024'],['Janine','Aisle 5','Atlanta, GA','Friday','6/7/2024','8:00 PM','6234111','Janine-6-7-2024'],['Sign Crushes Motorist','Aisle 5','Atlanta, GA','Monday','7/8/2024','8:00 PM','6296350','Sign-Crushes-Motorist-7-8-2024'],['The Strike','Aisle 5','Atlanta, GA','Tuesday','7/16/2024','8:00 PM','6387127','The-Strike-7-16-2024'],['Zolita','Aisle 5','Atlanta, GA','Friday','9/20/2024','7:30 PM','6355543','Zolita-9-20-2024'],['IAMDDB','Aisle 5','Atlanta, GA','Tuesday','11/19/2024','7:30 PM','6336302','IAMDDB-11-19-2024'],['Fakear','Aisle 5','Atlanta, GA','Thursday','5/15/2070','TBD','4431567','Fakear-5-15-2070']],'The Five Spot','http://www.ticketnetwork.com/ticket/The-Five-Spot-events.aspx');